package Collestions_demo;


import java.util.ArrayList;
import java.util.Collection;

public class Collection_2 {
    public static void main(String[] args) {
        Collection<Point1> p1 = new ArrayList<>();
        p1.add(new Point1(1,2));
        System.out.println(p1);
        p1.toString();
        System.out.println(p1);


        Point1 p2 = new Point1(1,2);
        boolean con = p1.contains(p2);
        System.out.println(con);

        p1.remove(p2);
        System.out.println(p1);
    }
}
